package com.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ClassName: PostComment
 * Description:
 *
 * @author L_Z_R
 * @create 2025/05/07 19:23
 * @version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PostComment {
    private Integer commentId;  // 评论id
    private Integer postId;     //  帖子id
    private Integer parentId;  //  父评论id
    private Integer toUserId;  //  被回复用户id
    private Integer accountId; //  评论用户id
    private String content;      //  评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime; //  评论时间
    private Boolean isDelete;   //  是否删除
}
